//
//  ExhibitWorkUserInfoTableCell.m
//  ArtDog
//
//  Created by dllo on 16/9/20.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ExhibitWorkUserInfoTableCell.h"
#import "ExhibitWorkDetailsMainModel.h"
#import "ExhibitWorkUserModel.h"
#import "UIImageView+WebCache.h"

@interface ExhibitWorkUserInfoTableCell ()

@property (weak, nonatomic) IBOutlet UIImageView *picImageView;

@property (weak, nonatomic) IBOutlet UILabel *autorLabel;
@property (weak, nonatomic) IBOutlet UILabel *infoLabel;
@property (weak, nonatomic) IBOutlet UIButton *viewerBtn;


@end

@implementation ExhibitWorkUserInfoTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setDetailsModel:(ExhibitWorkDetailsMainModel *)detailsModel
{
    _detailsModel = detailsModel;
    [_picImageView sd_setImageWithURL:[NSURL URLWithString:detailsModel.user.headPic] placeholderImage:[UIImage imageNamed:@"placeholder"]];
    _autorLabel.text = detailsModel.user.userName;
    _infoLabel.text = [NSString stringWithFormat:@"作品%@/粉丝%@", detailsModel.user.worksNum, detailsModel.user.fansNum];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
}

@end
